/*
 *  Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  See the NOTICE file distributed with
 *  this work for additional information regarding copyright ownership.
 *  The ASF licenses this file to You under the Apache License, Version 2.0
 *  (the "License"); you may not use this file except in compliance with
 *  the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package org.apache.wikimark;

import java.io.Closeable;
import java.io.Writer;
import java.net.URL;

/**
 * The abstraction of WikiMark configuration
 * @author Sergey I. Salishev
 */
public interface Config extends Closeable {
	/**
	 * @return test page sizes density in form of array of elements 
	 * {page size in bytes, chance}
	 */
	public int[][] getPageSizeDensity();

	/**
	 * @return array of thread counts used for request generation 
	 */
	public int[] getThreadCounts();

	/**
	 * @return number of requests for each page
	 */
	public int getRequestPerPageCount();
		
	/**
	 * @return the url of base Wiki page
	 */
	public URL getBaseUrl();

	/**
	 * @return the instance pf Wiki engine specific driver
	 */
	public Driver getDriver();
	
	/**
	 * @return the instance of connectivity for data transfer
	 */
	public Connectivity getConnectivity();
	
	/**
	 * @return the callback for test event processing
	 */
	public TestEventListener getTestEventListener();
	
	/**
	 * @return writer for debug logging connectivity output or <code>null</code>
	 */
	public Writer getOutputLogger(); 
}